<%--
  Created by IntelliJ IDEA.
  User: Edward
  Date: 2020/5/17
  Time: 11:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--文件上传测试--%>
    <%--文件上传必须的 enctype="multipart/form-data"--%>
    <form action="${pageContext.request.contextPath}/uploadFile" method="post" enctype="multipart/form-data">
        <input type="file" value="文件上传" name="file">
        <%--静态文件可以在resource的static中读取--%>
        <img src="img/default.jpg">
        <br>
        <input type="submit" value="确认上传文件">
    </form>
    <h1>${success}</h1>
</body>
</html>
